<?php

namespace app\models;

class Admins extends ModelBase
{
    protected $pk = "adminId";

    public function getAdminStatusText()
    {
        $text = '';
        switch($this->status){
            case 1:
                $text= "开启";
                break;
            case 0:
                $text = '关闭';
                break;
        }
        return $text;
    }
}